DomainObjects Class Library

InsertByQuery<InsertIntoClass,SelectFromClass> Class

Use InsertByQuery to 'batch' insert your domain objects directly to the database via a select subquery. At runtime DomainObjects translates an InsertByQuery instance into a SQL INSERT INTO...SELECT statement.

For a list of all members of this type, see InsertByQuery<InsertIntoClass,SelectFromClass> Members.

System.Object
   BatchStatement
      InsertByQuery<InsertIntoClass,SelectFromClass>

[Serializable]
[Serializable]
public class InsertByQuery<InsertIntoClass,SelectFromClass> : BatchStatement, IQuery, ITableMappedObject, IQuery<SelectFromClass> where InsertIntoClass: TransactableObject,  where SelectFromClass: PersistableObject

Example

The following unit test demonstrates the usage of the InsertByQuery class: see InsertTests.ExecuteInsert().

Requirements

Namespace: DomainObjects.Facade.Command

Assembly: DomainObjects.Core (in DomainObjects.Core.dll)

See Also

InsertByQuery<InsertIntoClass,SelectFromClass> Members | DomainObjects.Facade.Command Namespace